Touch screen driver installation for Debian-5.0 and X11 
(C) 2009 Chart Wu

==============================================================================
QUICKSTART GUIDE
==============================================================================
1. Open Root Terminal
   Applications->Accessories->Root Terminal

2. Generate a xorg.conf.new
   # Xorg -configure :1

3. setup xorg driver
   a. decompress xfhiddrv_drv.tar.gz
      #gzip -d xfhiddrv_drv.tar.gz
      #tar xvf xfhiddrv_drv.tar 

   b. Copy xfhiddrv_drv.so to /usr/lib/xorg/modules/input/xfhiddrv_drv.so 

      #cp   xfhiddrv_drv.so /usr/lib/xorg/modules/input/xfhiddrv_drv.so

   c. Add the following lines into xorg.conf.new 
      If your system will not have a mouse, then use "CorePointer" instead of
      "SendCoreEvents" in the "ServerLayout" section.  Set "ServerLayout"  section
      as the following.

    	InputDevice 	"HID TOUCH" 


   d. Add the a new "InputDevice" Section as the following.

Section "InputDevice"
	Identifier  "HID TOUCH"
	Driver      "xfhiddrv"
	Option      "Device" "/dev/usb/hiddev0"
	Option      "ScreenNo" "0"
	Option      "Rotation" "0"
	Option      "SwapY" "0"
	Option      "UpSound" "0"
	Option      "DownSound" "0"
	Option      "AutoRightClick" "1"
	Option      "TouchMode" "2"
EndSection

    In the item of "Device", you must depend on your computer. So, it can be the value, 
such as the followings.
        "/dev/usb/hiddevx"  x=0,1,..2, n

   e. copy xorg.conf.new to /etc/X11/xorg.conf
      #cp xorg.conf.new /etc/X11/xorg.conf

   f. Press Ctrl+Alt+Backspace to restart X server. 

4. Setup and run Linear Utility:
   I. Linearity Utility:
   a. installation 
      step 1. decompress LinearAp.tar.gz 
         #gzip -d LinearAp.tar.gz
         #tar xvf LinearAp.tar.gz 
      step 2. copy linearity utility to /usr/local/bin
         #cp ./LinearAp /usr/local/bin
   b. Run linearity utility
      I. HID device
      #sudo LinearAp  /dev/usb/hiddevx n
      II. RS232 device
      #sudo LinearAp  /dev/ttySx n
      where x=0,1,2...n, n = 4 or 9 <default>  
      
      
